<?

$url = 'https://secure.mixi-platform.com/2/token';

$data = array(
    'grant_type' => 'refresh_token',
    'client_id' => 'b225fe62438fd46b986d',
    'client_secret' => 'b22cf64cfc03df7f0dc233e2cbaaf122691a509a',
    'refresh_token' => 'aa0df2403a61b10640e50bcf0aa65a6f78568984',
);

$options = array('http' => array(
    'method' => 'POST',
    'content' => http_build_query($data),
));

$contents = file_get_contents($url, false, stream_context_create($options));


preDump(json_decode($contents));


function preDump($data){

    echo '<pre>';
    var_dump($data);
    echo '</pre>';
}


?>